Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TM: do not populate delivery service disabled locations #6051

Merged

Conversation

rawlinp
Copy link
Contributor

@rawlinp rawlinp commented Jul 21, 2021

What does this PR (Pull Request) do?

The disabledLocations array is an unnecessary optimization for Traffic
Router, and it isn't always populated properly in certain cases, leading
to service outages. Therefore, never populate it, but keep the field
around for compatibility purposes.

Which Traffic Control components are affected by this PR?

  • Traffic Monitor

What is the best way to verify this PR?

Ensure the TM tests pass.
Shut down all caches in a cachegroup for a CDN, request GET /publish/CrStates from TM, ensure that the disabledLocations arrays are all empty -- i.e. [].

If this is a bug fix, what versions of Traffic Control are affected?

5.1.x, master

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • bug fix, no docs necessary
  • This PR includes an update to CHANGELOG.md
  • This PR includes any and all required license headers
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

The disabledLocations array is an unnecessary optimization for Traffic
Router, and it isn't always populated properly in certain cases, leading
to service outages. Therefore, never populate it, but keep the field
around for compatibility purposes.
@rawlinp rawlinp added bug something isn't working as intended Traffic Monitor related to Traffic Monitor labels Jul 21, 2021
@rawlinp rawlinp added this to the 6.0.0 milestone Jul 21, 2021
Copy link
Contributor

@mattjackson220 mattjackson220 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good, TM tests pass, tested locally in CiaB and works as expected!

@mattjackson220 mattjackson220 merged commit ed8d4af into apache:master Jul 29, 2021
@rawlinp rawlinp deleted the fix-tm-disabled-loc-online-caches branch July 29, 2021 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended Traffic Monitor related to Traffic Monitor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TM sometimes sets cachegroups to unavailable if all caches are ONLINE instead of REPORTED
2 participants